package com.sx.user.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author shengx
 * @date 2020/5/10 22:42
 */
@FeignClient(name = "service-code")
@RequestMapping("/code")
public interface CodeFeignClient {
    @RequestMapping(value = "/validate/{email}/{code}", method = RequestMethod.GET)
    Integer validate(@PathVariable String email, @PathVariable String code);
}
